
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-twitter"></use>
                    </svg>
                    <div class="name">twitter</div>
                    <div class="fontclass">#el-icon-mc-twitter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-1801xiaoxi"></use>
                    </svg>
                    <div class="name">message</div>
                    <div class="fontclass">#el-icon-mc-1801xiaoxi</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-followed1"></use>
                    </svg>
                    <div class="name">followed</div>
                    <div class="fontclass">#el-icon-mc-followed1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-message"></use>
                    </svg>
                    <div class="name">message</div>
                    <div class="fontclass">#el-icon-mc-message</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-userset"></use>
                    </svg>
                    <div class="name">user-set</div>
                    <div class="fontclass">#el-icon-mc-userset</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-Qzone"></use>
                    </svg>
                    <div class="name">icon_Qzone</div>
                    <div class="fontclass">#el-icon-mc-Qzone</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-QQ"></use>
                    </svg>
                    <div class="name">icon_QQ</div>
                    <div class="fontclass">#el-icon-mc-QQ</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-xinlang"></use>
                    </svg>
                    <div class="name">icon_xinlang</div>
                    <div class="fontclass">#el-icon-mc-xinlang</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-zhifubao"></use>
                    </svg>
                    <div class="name">icon_zhifubao</div>
                    <div class="fontclass">#el-icon-mc-zhifubao</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-weichat"></use>
                    </svg>
                    <div class="name">icon_weichat</div>
                    <div class="fontclass">#el-icon-mc-weichat</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-email"></use>
                    </svg>
                    <div class="name">icon_email</div>
                    <div class="fontclass">#el-icon-mc-email</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-business"></use>
                    </svg>
                    <div class="name">业务</div>
                    <div class="fontclass">#el-icon-mc-business</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-facebook"></use>
                    </svg>
                    <div class="name">facebook</div>
                    <div class="fontclass">#el-icon-mc-facebook</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-vk"></use>
                    </svg>
                    <div class="name">vk</div>
                    <div class="fontclass">#el-icon-mc-vk</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-channel"></use>
                    </svg>
                    <div class="name">渠道</div>
                    <div class="fontclass">#el-icon-mc-channel</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-following"></use>
                    </svg>
                    <div class="name">following</div>
                    <div class="fontclass">#el-icon-mc-following</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-yonghuzhongxin_f"></use>
                    </svg>
                    <div class="name">用户中心_f</div>
                    <div class="fontclass">#el-icon-mc-yonghuzhongxin_f</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-user-list"></use>
                    </svg>
                    <div class="name">用户列表</div>
                    <div class="fontclass">#el-icon-mc-user-list</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-air-drop"></use>
                    </svg>
                    <div class="name">air-drop</div>
                    <div class="fontclass">#el-icon-mc-air-drop</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-app"></use>
                    </svg>
                    <div class="name">app</div>
                    <div class="fontclass">#el-icon-mc-app</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-air"></use>
                    </svg>
                    <div class="name">air</div>
                    <div class="fontclass">#el-icon-mc-air</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-bar-chart"></use>
                    </svg>
                    <div class="name">bar-chart</div>
                    <div class="fontclass">#el-icon-mc-bar-chart</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-box"></use>
                    </svg>
                    <div class="name">box</div>
                    <div class="fontclass">#el-icon-mc-box</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-building"></use>
                    </svg>
                    <div class="name">building</div>
                    <div class="fontclass">#el-icon-mc-building</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-delete"></use>
                    </svg>
                    <div class="name">delete</div>
                    <div class="fontclass">#el-icon-mc-delete</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-ding"></use>
                    </svg>
                    <div class="name">ding</div>
                    <div class="fontclass">#el-icon-mc-ding</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-drop"></use>
                    </svg>
                    <div class="name">drop</div>
                    <div class="fontclass">#el-icon-mc-drop</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-edit"></use>
                    </svg>
                    <div class="name">edit</div>
                    <div class="fontclass">#el-icon-mc-edit</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-exclamatory-mark-t"></use>
                    </svg>
                    <div class="name">exclamatory-mark-t</div>
                    <div class="fontclass">#el-icon-mc-exclamatory-mark-t</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-key"></use>
                    </svg>
                    <div class="name">key</div>
                    <div class="fontclass">#el-icon-mc-key</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-letter"></use>
                    </svg>
                    <div class="name">letter</div>
                    <div class="fontclass">#el-icon-mc-letter</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-like"></use>
                    </svg>
                    <div class="name">like</div>
                    <div class="fontclass">#el-icon-mc-like</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-link"></use>
                    </svg>
                    <div class="name">link</div>
                    <div class="fontclass">#el-icon-mc-link</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-logout"></use>
                    </svg>
                    <div class="name">logout</div>
                    <div class="fontclass">#el-icon-mc-logout</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-more-transverse"></use>
                    </svg>
                    <div class="name">more-transverse</div>
                    <div class="fontclass">#el-icon-mc-more-transverse</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-more-vertical"></use>
                    </svg>
                    <div class="name">more-vertical</div>
                    <div class="fontclass">#el-icon-mc-more-vertical</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-phone-r"></use>
                    </svg>
                    <div class="name">phone-r</div>
                    <div class="fontclass">#el-icon-mc-phone-r</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-red-packet"></use>
                    </svg>
                    <div class="name">red-packet</div>
                    <div class="fontclass">#el-icon-mc-red-packet</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-register"></use>
                    </svg>
                    <div class="name">register</div>
                    <div class="fontclass">#el-icon-mc-register</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-refresh"></use>
                    </svg>
                    <div class="name">refresh</div>
                    <div class="fontclass">#el-icon-mc-refresh</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-rule"></use>
                    </svg>
                    <div class="name">rule</div>
                    <div class="fontclass">#el-icon-mc-rule</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-save"></use>
                    </svg>
                    <div class="name">save</div>
                    <div class="fontclass">#el-icon-mc-save</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-scan"></use>
                    </svg>
                    <div class="name">scan</div>
                    <div class="fontclass">#el-icon-mc-scan</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-security"></use>
                    </svg>
                    <div class="name">security</div>
                    <div class="fontclass">#el-icon-mc-security</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-share"></use>
                    </svg>
                    <div class="name">share</div>
                    <div class="fontclass">#el-icon-mc-share</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-setting"></use>
                    </svg>
                    <div class="name">setting</div>
                    <div class="fontclass">#el-icon-mc-setting</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-tag-subscript"></use>
                    </svg>
                    <div class="name">tag-subscript</div>
                    <div class="fontclass">#el-icon-mc-tag-subscript</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-tag-selected"></use>
                    </svg>
                    <div class="name">tag-selected</div>
                    <div class="fontclass">#el-icon-mc-tag-selected</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-sync"></use>
                    </svg>
                    <div class="name">sync</div>
                    <div class="fontclass">#el-icon-mc-sync</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-trend-chart"></use>
                    </svg>
                    <div class="name">trend-chart</div>
                    <div class="fontclass">#el-icon-mc-trend-chart</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-view-list"></use>
                    </svg>
                    <div class="name">view-list</div>
                    <div class="fontclass">#el-icon-mc-view-list</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-view-matrix"></use>
                    </svg>
                    <div class="name">view-matrix</div>
                    <div class="fontclass">#el-icon-mc-view-matrix</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-wave"></use>
                    </svg>
                    <div class="name">wave</div>
                    <div class="fontclass">#el-icon-mc-wave</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-warehouse"></use>
                    </svg>
                    <div class="name">warehouse</div>
                    <div class="fontclass">#el-icon-mc-warehouse</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-delete-o"></use>
                    </svg>
                    <div class="name">delete-o</div>
                    <div class="fontclass">#el-icon-mc-delete-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-edit-o"></use>
                    </svg>
                    <div class="name">edit-o</div>
                    <div class="fontclass">#el-icon-mc-edit-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-image-o"></use>
                    </svg>
                    <div class="name">image-o</div>
                    <div class="fontclass">#el-icon-mc-image-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-pie-chart-o"></use>
                    </svg>
                    <div class="name">pie-chart-o</div>
                    <div class="fontclass">#el-icon-mc-pie-chart-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-scan-o"></use>
                    </svg>
                    <div class="name">scan-o</div>
                    <div class="fontclass">#el-icon-mc-scan-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-setting-o"></use>
                    </svg>
                    <div class="name">setting-o</div>
                    <div class="fontclass">#el-icon-mc-setting-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-tag-o"></use>
                    </svg>
                    <div class="name">tag-o</div>
                    <div class="fontclass">#el-icon-mc-tag-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-view-list-o"></use>
                    </svg>
                    <div class="name">view-list-o</div>
                    <div class="fontclass">#el-icon-mc-view-list-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-volume-o"></use>
                    </svg>
                    <div class="name">volume-o</div>
                    <div class="fontclass">#el-icon-mc-volume-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-view-matrix-o"></use>
                    </svg>
                    <div class="name">view-matrix-o</div>
                    <div class="fontclass">#el-icon-mc-view-matrix-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-volumeopen-o"></use>
                    </svg>
                    <div class="name">volumeopen-o</div>
                    <div class="fontclass">#el-icon-mc-volumeopen-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-wave-o"></use>
                    </svg>
                    <div class="name">wave-o</div>
                    <div class="fontclass">#el-icon-mc-wave-o</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-twitter1"></use>
                    </svg>
                    <div class="name">twitter</div>
                    <div class="fontclass">#el-icon-mc-twitter1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-Facebook"></use>
                    </svg>
                    <div class="name">Facebook</div>
                    <div class="fontclass">#el-icon-mc-Facebook</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-alipay"></use>
                    </svg>
                    <div class="name">alipay</div>
                    <div class="fontclass">#el-icon-mc-alipay</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-vk1"></use>
                    </svg>
                    <div class="name">vk</div>
                    <div class="fontclass">#el-icon-mc-vk1</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-skype"></use>
                    </svg>
                    <div class="name">skype</div>
                    <div class="fontclass">#el-icon-mc-skype</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-line"></use>
                    </svg>
                    <div class="name">line</div>
                    <div class="fontclass">#el-icon-mc-line</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-mc-jibenxinxi"></use>
                    </svg>
                    <div class="name">基本信息</div>
                    <div class="fontclass">#el-icon-mc-jibenxinxi</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#el-icon-mc-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
